NBPExtract
NBPExtract Find one entity's address on a list
#include <AppleTalk.h> AppleTalk Manager
OSErr NBPExtract(theBuffer,numInBuf, whichOne,abEntity , address);
Ptr theBuffer; Location of buffer
short numInBuf; Number of tuples in buffer
short whichOne; specific tuple to return
EntityName *abEntity; Receives tuple name
AddrBlock * address; Receives tuple address
returns Error Code; 0=no error
NBPExtract is part of the AppleTalk alternate interface. but can be used
with the AppleTalk preferred interface as well for extracting NBP entity names
from a lookup response buffer.
NBPExtract extracts addresses from a buffer filled by a call to
theBuffer is the buffer filled by NBPLookup.
numInBuf indicates the number of tuples in the buffer, as returned in the
nbpDataField of the ATNBPRec by NBPLookup.
whichOne specifies which one of the responses to return.
abEntity receives the name of the responding socket.
address receives the network address of the socket named in abEntitity..
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
extractErr (-3104) Cannot find tuple in buffer